/**
 * App WebSocket Router Config
 */
const expressWs = require('express-ws');

class WsRouter{

    constructor(app, server){
        this.app = app;
        this.server = server;
        this.clients = [];
    }

    init(){
        let self = this;
        this.app.ws("/ws", function (ws, req) {
            console.log("client connect to server successful!");
            let sessionId = req.cookies.session;
            if(!sessionId){
                sessionId =
            }
            req.cookies.session
            self.clients[];
        })
    }
}